<template>
  <div>
    <h1>曹操</h1>
    <cao-pi>
      <!-- 使用v-slot替换具名插槽 -->
      <template v-slot:zhenfu>
        <div>
          <h1>test zhenfu</h1>
        </div>
      </template>
      <template v-slot:xiaoqiao>
        <div>
          <h1>test xiaoqiao</h1>
        </div>
      </template>
      <!-- 替换作用域插槽 -->
      <template v-slot:daqiao="pro">
        <div>
          <h1>{{ pro }}</h1>
        </div>
      </template>
    </cao-pi>
  </div>
</template>

<script>
import CaoPi from "./CaoPi.vue";
export default {
  name: "",
  props: [""],
  data() {
    return {};
  },

  components: { CaoPi },

  computed: {},

  beforeMount() {},

  mounted() {},

  methods: {},

  watch: {},
};
</script>
<style lang='' scoped>
</style>